/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kmcsoft.goldshop.model.exchange;

import com.kmcsoft.emaster.entity.TrackableEntity;
import java.util.ArrayList;
import java.util.List;
import javax.jdo.annotations.FetchGroup;
import javax.jdo.annotations.FetchGroups;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;

/**
 *
 * @author kmcsoft02
 */
@PersistenceCapable(detachable = "true", table = "EXC_CurrencyExchange")
@FetchGroups(value = {
    @FetchGroup(name = "detach_CurrencyExchange_All", members = {
        @Persistent(name = "createdBy"),
        @Persistent(name = "details")}),
    @FetchGroup(name = "detach_CurrencyExchange_Details", members = {
        @Persistent(name = "details")})
})
public class CurrencyExchange extends TrackableEntity {

    @Persistent
    private List<CurrencyExchangeDetail> details;
    
    public CurrencyExchange() {
        details = new ArrayList<CurrencyExchangeDetail>();
    }

    public List<CurrencyExchangeDetail> getDetails() {
        return details;
    }

    public void setDetails(List<CurrencyExchangeDetail> details) {
        this.details = details;
    }
    
}
